package com.chongwu.util;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;

import com.chongwu.util.DBManager;


public class QueryResult {
	
	private Connection conn;
	private Statement sta;
	private ResultSet rs;
	
	public QueryResult() {
		
	}
	
	public QueryResult(Connection conn,Statement sta,ResultSet rs) {
		this.conn = conn;
		this.sta = sta;
		this.rs = rs;
	}
	
	public void close() {
		DBManager.close(conn,sta,rs);
	}

	public Connection getConn() {
		return conn;
	}

	public void setConn(Connection conn) {
		this.conn = conn;
	}

	public Statement getSta() {
		return sta;
	}

	public void setSta(Statement sta) {
		this.sta = sta;
	}

	public ResultSet getRs() {
		return rs;
	}

	public void setRs(ResultSet rs) {
		this.rs = rs;
	}
}
